﻿<!DOCTYPE html>
<html>

<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
	<title></title>
	<script src="timer.js" type="text/javascript"></script>
</head>

<body>
	<div id="abc" class="ax">111</div>
	<script type="text/javascript">
		Timer({
			id: "abc",
			server: 1,
			endtime: "2017/09/04 16:58:00",
			show: function (id, d, h, m, s, ms) {
				id.innerHTML = d + "/" + h + "/" + m + "/" + s + "/" + ms;
			},
			over: function (id) {
				id.innerHTML = "已经过期";
			}
		});

		// var x=new Timer({
		// 	id:"bbb",
		// 	server:0,
		// 	endtime:"2017/09/10 00:00:00",
		// 	show:function(id,d,h,m,s,ms){
		// 		id.innerHTML=d+"/"+h;
		// 	},
		// 	over:function(id){
		// 		id.innerHTML="已经过期";
		// 	}
		// });
	</script>






</body>

</html>